package com.base.camel.tool.time;

public class TimeSeries {
    /**
     *  时间分组key 例如：2024或者2024-01或者2024-01-01或者2024-10-10 01
     */
    private String timeKey;

    /**
     * 分组对应的数量值，默认值为0
     */
    private Integer timeValue = 0;

    /**
     * 分组类型 0表示年  1表示月  2表示天  3表示小时
     */
    private String timeType;

    public String getTimeKey() {
        return timeKey;
    }

    public void setTimeKey(String timeKey) {
        this.timeKey = timeKey;
    }

    public Integer getTimeValue() {
        return timeValue;
    }

    public void setTimeValue(Integer timeValue) {
        this.timeValue = timeValue;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    @Override
    public String toString() {
        return "TimeSeries{" +
                "timeKey='" + timeKey + '\'' +
                ", timeValue=" + timeValue +
                ", timeType='" + timeType + '\'' +
                '}';
    }
}
